

<a href="index.php?module=VoteDataCenter&type=election&func=report">Election Report</a> 
| <a href="index.php?module=VoteDataCenter&type=election&func=edit">Edit Election Report</a> 
| <a href="index.php?module=VoteDataCenter&type=suratreport&func=pollreport">Poll Report </a>
| <a href="index.php?module=VoteDataCenter&type=suratreport&func=mappoll">Edit Poll Report</a> 
| <a href="index.php?module=VoteDataCenter&type=suratreport&func=report">Scanner Report </a>
<br>
<fieldset>
  <legend>&nbsp;Report&nbsp;filter&nbsp;</legend>
  <form method=post action="<!--[pnmodurl modname='VoteDataCenter' type='suratreport' func='mappoll']-->">
    &nbsp;&nbsp;
    House no : <input type="text" name="form[house_no]" value="">&nbsp;&nbsp;
    <select name="form[khet_id]" id="form_khet_id_">
        <option value="1" <!--[if $smarty.request.form.khet_id == 1]-->SELECTED<!--[/if]-->>เขต1</option>
        <option value="2" <!--[if $smarty.request.form.khet_id == 2]-->SELECTED<!--[/if]-->>เขต2</option>
        <option value="3" <!--[if $smarty.request.form.khet_id == 3]-->SELECTED<!--[/if]-->>เขต3</option>
        <option value="4" <!--[if $smarty.request.form.khet_id == 4]-->SELECTED<!--[/if]-->>เขต4</option>
    </select>&nbsp;&nbsp;
    <input type="submit" value="submit">
  </form><br>
</fieldset>

    <!--[if $objectArray]-->
      <fieldset>
        <legend>&nbsp;Data&nbsp;</legend>
          <table border="1" width="100%">
            <tr align="center">
              <th align="left">house_no</th>
              <th>khet</th>
              <th>unit</th>
              <th>select</td>
            </tr>
           <!--[foreach from=$objectArray item=item]-->
            <tr align="center">
              <td><!--[$item.house_no]--></td>
              <td><!--[$item.khet]--></td>
              <td><!--[$item.unit]--></td>
              <td><a href="<!--[pnmodurl modname='VoteDataCenter' type='suratreport' func='editmap' id=$item.id]-->" target="_blank">edit</a></td>
            </tr>
            <!--[/foreach]-->
        </table><br>
      </fieldset>
    <!--[/if]-->

  </body>
</html>